import 'package:flutter/material.dart';

class RButton extends StatelessWidget {
  IconData icon;
  String? text;
  VoidCallback? onPressed;
  Color? borderColor;

  RButton({
    super.key,  
    required this.icon,
    this.text,
    this.onPressed,
    this.borderColor = Colors.white
  });

  @override
  Widget build(BuildContext context) {
    return MaterialButton(
      color: borderColor,
      onPressed: onPressed,
      child: Icon(
        icon,
        color: Colors.white,
      ),
    );
  }
}
